package com.mydemo.common.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * 角色类
 * @author Last_Island
 * @version 1.0
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Role {
    /**
     * 角色id
     */
    private Long roleId;
    /**
     * 角色key
     */
    private String roleKey;

    /**
     * 角色名
     */
    private String roleName;

    /**
     * 角色权限列表
     */
    private List<Permission> permissions;

    public Role() {
    }

    public Role(Long roleId, String roleKey) {
        this.roleId = roleId;
        this.roleKey = roleKey;
    }

    public Role(Long roleId, String roleKey, List<Permission> permissions) {
        this.roleId = roleId;
        this.roleKey = roleKey;
        this.permissions = permissions;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleKey() {
        return roleKey;
    }

    public void setRoleKey(String roleKey) {
        this.roleKey = roleKey;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }
}
